import { TypeOrmModuleOptions } from '@nestjs/typeorm';
import { join } from 'path';
import { getMetadataArgsStorage } from 'typeorm';
export const databaseConfig: TypeOrmModuleOptions = {
  type: 'mysql',
  host: 'localhost',
  port: 3306,
  username: 'nestxhcss',
  password: '12345678',
  database: 'nest-xhcss',
  entities: [join(__dirname, '../**/*.entity{.ts,.js}')],
  synchronize: true,
  autoLoadEntities: true,
  logging: true,
  entityPrefix: 'ya_',
};
